//收藏管理
import API from '../index.js'

//查询
export function get(data) {
    return API({
        url: '/admin/favorite',
        method: 'get',
        params: data,
    })
}

//删除
export function del(data) {
    return API({
        url: '/admin/favorite',
        method: 'delete',
        data: data,
    })
}

//编辑
export function put(data) {
    return API({
        url: '/admin/favorite',
        method: 'put',
        data: data,
    })
}

//添加
export function add(data) {
	return API({
		url: '/admin/favorite',
		method: 'post',
		data: data
	})
}
//用户部分----------------------------------------------

//